package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.ToString;

// default package

/**
 * DocLogin entity. @author MyEclipse Persistence Tools
 */
@Entity
@ToString
@Table(name = "dr_message_push_history")
public class MessagePushHistory implements Serializable {

    private static final long serialVersionUID = 1563128978053455808L;
    private Long id;
    private Long doctorId;
    private String notice;
    private String content;
    private Date createdAt;

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * id : 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    /**
     * doctorId : 医生id
     */
    @Column(name = "doctor_id", nullable = false)
    public Long getDoctorId() {
        return this.doctorId;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    /**
     * content : 系统内短消息
     */
    @Column(name = "notice", length = 2000, nullable = false)
    public String getNotice() {
        return this.notice;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /**
     * content : 推送内容
     */
    @Column(name = "content", length = 2000, nullable = false)
    public String getContent() {
        return this.content;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * createdBy : 推送时间
     */
    @Column(name = "created_at")
    public Date getCreatedAt() {
        return this.createdAt;
    }
}
